<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'trattamento-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">I campi con l'asterisco <span class="required">*</span> sono obbligatori.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'nome'); ?>
		<?php echo $form->textField($model,'nome',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'nome'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'durata');
		
		$minuti = array();
		for ($qm=15;$qm<=180;$qm+=15) {
			array_push($minuti,$qm);
		}
	
		echo CHtml::activeDropDownList($model, 'durata', array_combine($minuti, $minuti));
		echo $form->error($model,'durata'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'prezzo'); ?>
		<?php echo $form->textField($model,'prezzo'); ?>
		<?php echo $form->error($model,'prezzo'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->